<template>
	<view class="content">
		<view class="bg-top"></view>
		<view class="banner">
			<image src="../../static/art-banner.jpg"></image>
		</view>
		
		<view class="art-sort">
			<view class="sort-li" v-for="(item,index) in listData" :key="item.aid">
				<view class="nav-img"><image class="nav-images" :src="item.litpic"></image></view>
				<view class="nav-title">{{item.title}}</view>
			</view>
		</view>
		
		<view class="list-box">
			<view class="box-title">
			  <view class="top-header-bg"></view>
			  <view class="box-txt">攻略资讯</view>
			</view>
			<view class="list-col" v-for="(item,index) in listArt" :key="item.aid">
				<view class="list-pic"><image class="list-pic-de" :src="item.litpic"></image></view>
				<view class="list-title">{{item.title}}</view>
			</view>
			
		</view>
		<loading :isLoadindShow="isLoadindShow"></loading>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isLoadindShow: false,
				listData: [
					 {
					 	aid: 1,
					 	title: '聊天教学',
					 	litpic: '../../static/girl.jpeg'
					 },
					{
						aid: 2,
						title: '恋爱解析',
						litpic: '../../static/girl.jpeg'
					},
					{
						aid: 3,
						title: '网聊技巧',
						litpic: '../../static/girl.jpeg'
					},
					{
						aid: 4,
						title: '聊天技巧',
						litpic: '../../static/girl.jpeg'
					},
					{
						aid: 5,
						title: '形象提升',
						litpic: '../../static/girl.jpeg'
					},
					{
						aid: 6,
						title: '约会攻略',
						litpic: '../../static/girl.jpeg'
					},
				],
				listArt:[
					{
						aid: 1,
						title: '哪些减分的肢体动作，证明你脱单无望？',
						litpic: '../../static/boy.jpeg'
					},
					{
						aid: 2,
						title: '哪些减分的肢体动作，证明你脱单无望？',
						litpic: '../../static/boy.jpeg'
					},
					{
						aid: 3,
						title: '哪些减分的肢体动作，证明你脱单无望？',
						litpic: '../../static/boy.jpeg'
					},
				]
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="less">
	@import '~@/common/less/comLess.less';
   .bg-top{
	   @{wd}:100%;
	   @{ht}:200upx;
	   @{bg}:#ffc300;
   }
   .banner{
	   @{wd}:95%;
	   @{ht}:280upx;
	   @{po}:absolute;
	   @{to}:50upx;
	   @{lf}:18upx;
   }
   .banner image{
	   @{wd}:100%;
	   @{ht}:100%;
   }
   
   .art-sort{
	  @{wd}:95%;
      @{jc}: space-between;
	  display: flex;
	  flex-wrap: wrap;
	  @{ma}:0 auto;
	  @{ma}-@{to}:180upx;
	}
	
	.sort-li{
	  @{wd}:33%;
	  @{ta}:center;
	  @{ma}-@{bt}:20upx;
	}
	.nav-img{
		@{wd}:120upx;
		@{ht}:120upx;
		@{bo}-radius: 50%;
		@{ma}:0 auto;
	}
	.nav-images{
		@{wd}:100%;
		@{ht}:100%;
		@{bo}-radius: 50%;
	}
	.nav-title{
		@{ma}-@{to}:20upx;
		@{ta}:center;
	}
	
	.list-box{
		@{wd}:95%;
		@{ma}:0 auto;
		
		}
	.box-title{
		  @{ma}-@{to}: 60upx;
		  @{ht}: 30upx;
		  @{fs}: 30upx;
		  @{ma}-@{lf}: 30upx;
		  display: flex;
		  flex-direction: row;
		  @{ma}-@{bt}:30upx;
	}	
	.top-header-bg {
	  @{bg}: #fd445c;
	  @{ht}: 100%;
	  @{wd}: 8upx;
	}
	.box-txt {
	  @{ht}: 100%;
	  line-@{ht}: 100%;
	  @{ma}-@{lf}: 10upx;
	}
	
	.list-col{
		@{wd}:90%;
		display: flex;
		flex-wrap: wrap;
		@{jc}: space-between;
		@{ma}:0 auto;
		@{ma}-@{bt}:10upx;
		@{pa}-@{bt}:10upx;
		@{bo}-@{bt}:1px solid #ffc300;
	}
	.list-pic{
		@{wd}:180upx;
		@{ht}:140upx;
		@{bo}-radius:20upx;
	}
	.list-pic-de{
		@{wd}:100%;
		@{ht}:100%;
		@{bo}-radius:20upx;
	}
	.list-title{
		@{wd}:70%;
		@{pa}-@{to}:10upx;
	}
</style>
